{ Summer Informatics School.
  Problemset: http://agul-problems1.googlecode.com/svn/trunk/2010-2011/sis/problemset11.pdf
  Problem K
  Points: 100
}
var i,n:longint;
begin
read(n);
for i:=1 to n do
  if n mod i=0 then write(i,' ');
end.
